package com.ff.discounts.component.search

import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentActivity
import com.ff.discounts.adapter.BaseFragmentPagerAdapter
import com.ff.discounts.adapter.BaseFragmentStateAdapter
import com.ff.discounts.component.shop.ShopFragment

/**
 *搜索结果分类适配器
 * @author: fufang
 * @date: 2023/10/26
 */
class SearchCategoryAdapter(fragmentActivity:FragmentActivity?) : BaseFragmentStateAdapter<Int>(fragmentActivity!!) {
    override fun createFragment(position: Int): Fragment {
        /// 显示shop
        return ShopFragment.newInstance(index = position)
    }

}